package Observer;

import Strategy.Coordinate;

import java.util.List;

// 环境数据类
public class EnvironmentData {
    private double soilMoisture;
    private double soilPH;
    private double temperature;
    private double humidity;
    private double windSpeed;
    private String cropGrowthStatus; // 新增：作物生长状态
    private boolean hasObstacle; //新增：障碍物
    private List<Coordinate> obstacles;

    public EnvironmentData() {
    }

    public EnvironmentData(double v, double v1, double v2, double v3, double v4) {
    }

    // 构造方法、getters和setters
    public List<Coordinate> getObstacles() {
        return obstacles;
    }

    public void setObstacles(List<Coordinate> obstacles) {
        this.obstacles = obstacles;
    }

    public double getSoilMoisture() {
        return soilMoisture;
    }

    public void setSoilMoisture(double soilMoisture) {
        this.soilMoisture = soilMoisture;
    }

    public double getSoilPH() {
        return soilPH;
    }

    public void setSoilPH(double soilPH) {
        this.soilPH = soilPH;
    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public double getHumidity() {
        return humidity;
    }

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }

    public double getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(double windSpeed) {
        this.windSpeed = windSpeed;
    }

    public String getCropGrowthStatus() {
        return cropGrowthStatus;
    }

    public void setCropGrowthStatus(String cropGrowthStatus) {
        this.cropGrowthStatus = cropGrowthStatus;
    }

    public boolean isHasObstacle() {
        return hasObstacle;
    }

    public void setHasObstacle(boolean hasObstacle) {
        this.hasObstacle = hasObstacle;
    }

    public boolean hasObstacle() {
        return hasObstacle;
    }

}